#include<iostream>
using namespace std;
long long f[65],g[65];
int main(){
	int n;
	cin >> n;
	f[1]=1;
	g[1]=1;
	for(int i=2;i<=n;i++){
		f[i] = 2 * f[i-1] + 1;
		g[i] = 2 * g[i-1] + i;
	}
	cout << f[n] << " " << g[n] << endl;
	return 0;
}
